package com.me.chat.pojo.chat;

import com.me.chat.pojo.relation.SingleRelation;
import com.me.chat.pojo.relation.SingleRelationReq;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Authhor: qiu
 * @Date: 2021/11/15 7:38 下午
 */
@Data
@ToString
@NoArgsConstructor
public class MessageType {

    public MessageType(int statusCode, String content) {
        this.statusCode = statusCode;
        this.content = content;
    }

    /**
     * 消息类型 401 错误消息
     *        999 测试消息
     */
    private int statusCode;

    /**
     * 消息的文字内容
     */
    private String content;

    /**
     * 消息对象内容 200
     */
    private ChatMessage chatMessage;

    /**
     * 关联请求 201
     */
    private SingleRelationReq singleRelationReq;

    /**
     * 好友添加成功后实时通讯码 202
     */
    private SingleRelation singleRelation;
}
